/* pages/Preferred/index.scss */
page {
    padding-bottom: 100rpx;
    box-sizing: border-box;
    background: #fcfaee;
}

.top_img {
    width: 100%;
    height: 200rpx;
}

.container {
    width: 100vw;
    height: calc(100vh - 100rpx);
    background-color: #fcfaee;
    padding: 20rpx 0;
    box-sizing: border-box;
}

.van-tabs__nav {
    /* padding: 0 20rpx; */
    box-sizing: border-box;
}

.van-tabs__scroll {
    background-color: transparent !important;
}

.van-tabs__line {
    /* display: none; */
    background-color: #f9800f !important;
}

/* .current {
  width: 160rpx;
  height: 60rpx;
  flex-basis: auto !important;
  background: #333333;
  border-radius: 40rpx 40rpx 40rpx 40rpx;
  font-family: Alibaba PuHuiTi 2.0, Alibaba PuHuiTi 20;
  font-weight: 400;
  font-size: 28rpx;
  color: #FADD9E !important;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
} */

.custom-class {
    width: 100vw;
    height: 60rpx;
    display: flex;
    align-items: center;
}

.van-tabs {
    width: 100% !important;
}

.category-item {
    width: 160rpx !important;
    height: 60rpx;
    font-family:
        Alibaba PuHuiTi 2,
        Alibaba PuHuiTi 20;
    font-weight: 400;
    font-size: 28rpx;
    text-align: center;
    font-style: normal;
    text-transform: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: auto;
}

.van-tab {
    flex: none !important;
    padding: 0 30rpx !important;
    box-sizing: content-box !important;
}

.list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 15rpx;
    padding: 0 20rpx;
    box-sizing: border-box;
}

.category_pctr {
    width: 344rpx;
    margin-bottom: 20rpx;
    background: #fcfaee;
    box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(185, 98, 33, 0.2);
    border-radius: 20rpx;
}

.category_pic {
    width: 344rpx;
    height: 334rpx;
    border-radius: 20rpx 20rpx 0 0;
    position: relative;
    margin: 0 auto;
}

.category_pic .bj {
    position: absolute;
    width: 344rpx;
    height: 344rpx;
    left: 0;
    bottom: 0;
}

.category_pic image {
    width: 100%;
    height: 100%;
    border-radius: 20rpx 20rpx 0 0;
}

.category_bottom {
    padding: 16rpx 16rpx 0;
    box-sizing: border-box;
    padding-bottom: 20rpx;
}

.category_txt {
    /* margin-bottom: 20rpx; */
    width: 324rpx;
    height: 72rpx;
    background: #fcfaee;
    /* box-shadow: 0rpx 0rpx 4rpx 0rpx rgba(0, 0, 0, 0.15); */
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    font-family:
        Alibaba PuHuiTi 2,
        Alibaba PuHuiTi 20;
    font-weight: 500;
    font-size: 24rpx;
    color: #3d3d3d;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.vip {
    width: 80rpx;
    height: 32rpx;
    background: #312c2f;
    border-radius: 4rpx 4rpx 4rpx 4rpx;
    font-family:
        Alibaba PuHuiTi 2,
        Alibaba PuHuiTi 20;
    font-weight: 400;
    font-size: 20rpx;
    color: #ffffff;
    line-height: 32rpx;
    text-align: center;
    font-style: normal;
    text-transform: none;
    margin-bottom: 8rpx;
}

.yuanjia {
    font-family:
        Alibaba PuHuiTi 2,
        Alibaba PuHuiTi 20;
    font-weight: 500;
    font-size: 24rpx;
    color: #312c2f;
    line-height: 52rpx;
    margin: 8rpx 0;
    display: flex;
    align-items: baseline;
}

.yuanjia .num {
    font-size: 32rpx;
}

.pay_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ordinary_price {
    margin-left: 10rpx;
    font-weight: 400;
    color: #999999;
}

.ordinary_price .num {
    font-size: 24rpx;
    text-decoration: line-through;
}

.ordinary_price .icom {
    font-size: 22rpx;
}

.pay_box .pic_box {
    width: 0;
    flex: 1;
    font-family:
        Alibaba PuHuiTi 2,
        Alibaba PuHuiTi 20;
    font-weight: 500;
    font-size: 22rpx;
    color: #312c2f;
    line-height: 52rpx;
    text-align: left;
    font-style: normal;
    text-transform: none;
    height: 40rpx;
    background: linear-gradient(97deg, #fadd9e 0%, #cda85a 100%);
    border-radius: 40rpx 40rpx 40rpx 40rpx;
    display: flex;
    align-items: center;
    padding: 0 16rpx;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 6rpx;
}

.pay_box .pic_box .qian {
    font-size: 20rpx;
}

.pay_box .pic_box .line {
    margin: 0 10rpx;
    margin-top: -4rpx;
}

.pay_box .pic_box .huaxian {
    font-family:
        Alibaba PuHuiTi 2,
        Alibaba PuHuiTi 20;
    font-weight: 400;
    font-size: 20rpx;
    color: #999999;
    line-height: 32rpx;
    text-align: left;
    font-style: normal;
    text-decoration-line: line-through;
    text-transform: none;
}

.pay_btn {
    width: 90rpx;
    height: 40rpx;
    background: #312c2f;
    border-radius: 40rpx 40rpx 40rpx 40rpx;
    font-family:
        Alibaba PuHuiTi 2,
        Alibaba PuHuiTi 20;
    font-weight: 500;
    font-size: 22rpx;
    color: #fadd9e;
    line-height: 40rpx;
    text-align: center;
    font-style: normal;
    text-transform: none;
}

.vip_price_box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .n_price {
        padding: 0 10rpx 0 20rpx;
        height: 42rpx;
        line-height: 42rpx;
        background: #f9800f;
        box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(185, 98, 33, 0.2);
        border-radius: 30rpx 4rpx 4rpx 4rpx;
        font-weight: 400;
        font-size: 24rpx;
        color: #fcfaee;
        margin-top: 6rpx;
        display: flex;

        text {
            margin-left: 20rpx;
            position: relative;

            &::after {
                content: "";
                display: block;
                width: 2rpx;
                height: 20rpx;
                background-color: #fcfaee;
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                left: -10rpx;
            }
        }
    }

    .cart_icon {
        width: 50rpx;
        height: 50rpx;

        image {
            width: 50rpx;
            height: 50rpx;
            border-radius: 50%;
        }
    }
}

/* @import "/style/style.wxss"; */